home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000058_m.poser@rz.uni-frankfurt.de_Wed Dec 10 12:42:54 2003.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  95 lines

  1. Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!misterbrot.rz.uni-frankfurt.DE!not-for-mail
  2. From: "Michael Poser" <m.poser@rz.uni-frankfurt.de>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: password query fails
  5. Date: Wed, 10 Dec 2003 17:46:36 +0100
  6. Lines: 79
  7. Message-ID: <br7ila$761g$1@uni-berlin.de>
  8. NNTP-Posting-Host: misterbrot.rz.uni-frankfurt.de (141.2.95.88)
  9. X-Trace: news.uni-berlin.de 1071074795 235568 141.2.95.88 (10435)
  10. X-Priority: 3
  11. X-MSMail-Priority: Normal
  12. X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
  13. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
  14. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14734
  15.  
  16. Hello,
  17.  
  18. fist of all, iam a kermit newbie.
  19.  
  20. I want to write a script that restarts every night the Accesspoints of our
  21. University (round about
  22. 40). It seems to be easy, but i have a few problems:
  23.  
  24. The password query works a few times only , sometimes it works, sometimes it
  25. fails (But if the
  26. password query was successfull, the rest of the script works fine). I dont
  27. know why (If i set a
  28. pause between in+output it fails to 100 percent). If i take a look at
  29. \v(input) it shows no
  30. diferrence between a succesfull login or a bad login. It shows always:
  31.  <- It seems to be
  32. strange to me, why is it so cryptic, why is it not "password:"??
  33.  
  34. OS -> AIX, C-Kermit 800209, here is my script:
  35.  
  36. #!/opt/bin/kermit +
  37. # Restart mit Argumentenliste
  38.  
  39. # Logfile wird angelegt und geoeffnet
  40. .filename := \v(home)command.log
  41. fopen /append \%c \m(filename)
  42. fwrite /line \%c \v(date) - \v(time) - Host=\%1 - \%2 \13
  43.  
  44. # Fehler Routine
  45. define errmsg {
  46.     fwrite /line \%c \%1 \%2 \13
  47.     fclose \%c
  48.     close
  49.     exit
  50. }
  51.  
  52. set input echo on
  53. set exit warning off
  54.  
  55. clear
  56. set host /nowait \%1
  57. if fail errmsg Err_No_Verbindung
  58.  
  59. input 10 password:
  60. if fail errmsg no_passwortprompt \v(input)
  61. output mypwd\13
  62.  
  63. input 10 \fpattern(*admin]>)
  64. if fail errmsg no_mainmenu \v(input)
  65.  
  66. output 3
  67.  
  68. input 10 \fpattern(*admin]>)
  69. if fail errmsg no_configmenu \v(input)
  70. output 5
  71.  
  72. input 10 "Are you sure [y/n] ? "
  73. if fail errmsg no_restartprompt \v(input)
  74. output y\13
  75.  
  76. fwrite /line \%c Success \v(input) \13
  77. fclose \%c
  78. close
  79. clear
  80. exit
  81.  
  82. Any Ideas?
  83.  
  84. Kind regards,
  85.  
  86.       Michael Poser
  87.  
  88. -- 
  89. Michael Poser,
  90. Goethe Universitaet Frankfurt am Main
  91. Hochschulrechenzentrum - Abteilung Netze
  92. Germany
  93.  
  94.  
  95.